package com.java.comprehensive.other.jvm;

import java.io.IOException;
import java.util.ArrayList;
import java.util.List;

/**
 * @Author: 窦绍飞
 * @Date: 2022/5/26
 */
public class Demo2_3 {

	static int SIZE = 4 * 1024 * 1024;

	public static void main(String[] args) throws IOException {
		List<Byte[]> list = new ArrayList<>();
		for (int i = 0; i < 10; i++) {
			list.add(new Byte[SIZE]);
		}
		System.in.read();
	}

	public static void soft() throws IOException {
		List<Byte[]> list = new ArrayList<>();
		for (int i = 0; i < 5; i++) {
			list.add(new Byte[SIZE]);
		}
		System.in.read();
	}

}
